# core/networking/acoustid.py
import requests
from urllib3.util.ssl_ import create_urllib3_context

class SecureAPIClient:
    def __init__(self):
        self.session = requests.Session()
        ctx = create_urllib3_context()
        ctx.load_default_certs()  # 强制验证证书链
        self.session.mount('https://', requests.adapters.HTTPAdapter(
            max_retries=3,
            pool_connections=10,
            pool_maxsize=100,
            ssl_context=ctx
        ))